import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
  return request({
    url: `common/v1/adminDict`,
    method: 'get',
    params
  })
}

// 赚卡退卡列表
export function getList(query) {
  return request({
    url: '/customer/equity/card/order/refund/v1/list',
    method: 'get',
    params: query
  })
}


//赚卡退款 审核同意
export function refundAgree(data) {
  return request({
    url: '/customer/equity/card/order/refund/v1/refundAgree',
    method: 'post',
    data
  })
}

// 赚卡退款 审核拒绝
export function refundRefuse(data) {
  return request({
    url: '/customer/equity/card/order/refund/v1/refundRefuse',
    method: 'put',
    data
  })
}

// 赚卡退卡详情
export function refundDetail(id) {
  return request({
    url: '/customer/equity/card/order/refund/v1/detail/' + id,
    method: 'get',
  })
}
// 查询商家店铺下拉框
export function merchantShopSelect(data) {
  return request({
    url: '/customer/equity/card/order/refund/v1/merchant/shop/select',
    method: 'get',
    data
  })
}
// 根据交易单号查询卡信息
export function equityCardLs(params) {
  return request({
    url: '/customer/equity/card/order/refund/v1/equity/card/list',
    method: 'get',
    params
  })
}
//新增申请退卡
export function refundApply(data) {
  return request({
    url: '/customer/equity/card/order/refund/v1/apply',
    method: 'post',
    data
  })
}
// 批量赚卡退款 审核
export function refundExamineBatch(data) {
  return request({
    url: '/customer/equity/card/order/refund/v1/refundExamineBatch',
    method: 'post',
    data
  })
}


